package com.sifa.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
   通常类型的返回数据
 */
@AllArgsConstructor
@Data
@NoArgsConstructor
public class CommentResult<T>{
    Integer code;
    String message;
    private T data;

    public CommentResult(Integer code, String message){
        this(code,message,null);
    }
}
